package com.hertz.iris.view;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.hertz.iris.util.DateUtil;

public class MatchsAdapter extends FragmentPagerAdapter {

	

    /**
     * Create pager adapter
     *
     * @param resources
     * @param fragmentManager
     */
    public MatchsAdapter(FragmentManager fragmentManager) {
        super(fragmentManager);
    }

    @Override
    public int getCount() {
        return 7;
    }

    @Override
    public Fragment getItem(int position) {
    	Bundle bundle = new Bundle();
    	bundle.putInt("addDay", position);
    	MatchsFragment matchsFragment = new MatchsFragment();
    	matchsFragment.setArguments(bundle);
    	return matchsFragment;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return DateUtil.getNextDay(position);
    }
}
